package com.gmt;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * @author John.zhang
 * @version Id: FeignController, v 1.0 2020/11/18 17:51 ZhiYong Exp $
 */
@RestController
public class FeignMultiModuleController {

    @Resource
    private IUserServiceFeign userService;

    @GetMapping("/user")
    public String getUser(){
        return userService.getUser();
    }

}
